package com.hfbank.order.controller;

import com.hfbank.order.service.ExampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述：
 * Created by xiaoli
 * ${Date}
 */
@RestController
public class ExampleController {

    @Autowired
    private ExampleService exampleService;

    @GetMapping("/test/{name}")
    public String test(@PathVariable String name){
        return exampleService.getName(name);
    }
}
